package com.ukao.pad.bean;


import android.os.Parcel;
import android.os.Parcelable;

import com.ukao.pad.utils.CheckUtils;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by ukaodev on 2017/6/28.
 */

public class UserInfoBean extends BaseBean<UserInfoBean> implements Parcelable {


    /**
     * user : {"ext":{"id":1,"poInteger":1,"payAmt":0,"payCnt":3,"balance":2,"orderLastTime":null,"mail":null,"birthday":"2017-03-01","regionalId":null,"regionalDesc":null,"addressDesc":null,"createBy":null,"createTime":null,"updateBy":null,"updateTime":1498216421000},"tagList":[{"relId":9,"userTag":{"id":5,"mercId":1,"cityId":1,"name":"新客户赠送券","cnt":1,"createBy":1,"createTime":1495771977000,"updateBy":9,"updateTime":1496715983000}}],"couponCnt":0,"storeList":[{"id":19,"mercId":1,"cityId":1,"name":"再添加门店","code":"30306468","regionalId":310404,"regionalDesc":"上海徐汇徐汇区","addrDesc":"的奋斗","longitude":"","latitude":"","tel":"18777554447","status":1,"workId":44,"createBy":8,"createTime":1497257930000,"updateBy":8,"updateTime":1497836189000},{"id":1,"mercId":1,"cityId":1,"name":"麓谷门店修改了","code":"28213096","regionalId":4301,"regionalDesc":null,"addrDesc":"湖南省长沙市岳麓区","longitude":null,"latitude":null,"tel":"123456789","status":0,"workId":8,"createBy":1,"createTime":1494985971000,"updateBy":8,"updateTime":1496650268000}],"card":{"no":"NO9920121","relId":1,"info":{"id":1,"mercId":1,"cityId":-1,"name":"普通会员卡","coverType":1,"imgPath":"#60be4e","giftPoInteger":10,"poIntegerRatio":1,"rights":"1101","discount":50,"level":1,"remark":"普通会员卡使用须知","payAmt":null,"payCnt":null,"poInteger":null,"userCnt":null,"status":0,"createBy":null,"createTime":null,"updateBy":8,"updateTime":1497690662000}},"info":{"id":1,"mercId":1,"name":"孙岩风","sex":1,"phone":"15103173399","wxId":-1,"wxNickname":null,"headimgPath":"http://wx.qlogo.cn/mmopen/VLCDoCTqQUC0NkDQGgO98WicPaB6ic0BwMXs5urt5piaXssTExnl1UI1kNUd6Wv5dU7xYP78SM1x9E2tllJibciaEV7TStLx6Dwtv/0","status":1,"verifyPhone":1,"verifyIos":1,"verifyAndriod":1,"origin":1,"subscribe":2,"createBy":1,"createTime":1495766166000,"updateBy":null,"updateTime":1498216398000},"group":{"id":-1,"mercId":null,"cityId":null,"name":"默认分组","cnt":null,"createBy":null,"createTime":null,"updateBy":null,"updateTime":null}}
     */

    private String searchValue;
    private UserBean user;


    protected UserInfoBean(Parcel in) {
        searchValue = in.readString();
        user = in.readParcelable(UserBean.class.getClassLoader());
    }

    public static final Creator<UserInfoBean> CREATOR = new Creator<UserInfoBean>() {
        @Override
        public UserInfoBean createFromParcel(Parcel in) {
            return new UserInfoBean(in);
        }

        @Override
        public UserInfoBean[] newArray(int size) {
            return new UserInfoBean[size];
        }
    };

    public String getSearchValue() {
        return searchValue;
    }

    public void setSearchValue(String searchValue) {
        this.searchValue = searchValue;
    }

    public UserBean getUser() {
        return user;
    }

    public void setUser(UserBean user) {
        this.user = user;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(searchValue);
        dest.writeParcelable(user, flags);
    }

    public static class UserBean extends BaseBean<UserBean> implements Parcelable {




        private ExtBean ext;
        private String couponCnt;
        private CardBean card;
        private InfoBeanX info;
        private GroupBean group;
        private UnionInfoBean unionInfo;
        private List<TagListBean> tagList;
        private List<StoreListBean> storeList;

        public UnionInfoBean getUnionInfoBean() {
            return unionInfo;
        }

        public void setUnionInfoBean(UnionInfoBean unionInfo) {
            this.unionInfo = unionInfo;
        }

        public ExtBean getExt() {
            return ext;
        }

        public void setExt(ExtBean ext) {
            this.ext = ext;
        }

        public String getCouponCnt() {
            return couponCnt;
        }

        public void setCouponCnt(String couponCnt) {
            this.couponCnt = couponCnt;
        }

        public CardBean getCard() {
            return card;
        }

        public void setCard(CardBean card) {
            this.card = card;
        }

        public InfoBeanX getInfo() {
            return info;
        }

        public void setInfo(InfoBeanX info) {
            this.info = info;
        }

        public GroupBean getGroup() {
            return group;
        }

        public void setGroup(GroupBean group) {
            this.group = group;
        }

        public List<TagListBean> getTagList() {
            return tagList;
        }

        public void setTagList(List<TagListBean> tagList) {
            this.tagList = tagList;
        }

        public List<StoreListBean> getStoreList() {
            return storeList;
        }

        public void setStoreList(List<StoreListBean> storeList) {
            this.storeList = storeList;
        }

        public static class ExtBean implements Serializable {
            /**
             * id : 1
             * poInteger : 1
             * payAmt : 0
             * payCnt : 3
             * balance : 2
             * orderLastTime : null
             * mail : null
             * birthday : 2017-03-01
             * regionalId : null
             * regionalDesc : null
             * addressDesc : null
             * createBy : null
             * createTime : null
             * updateBy : null
             * updateTime : 1498216421000
             */

            private int id;
            private int point;
            private int payAmt;
            private int payCnt;
            private int balance;
            private Object orderLastTime;
            private Object mail;
            private String birthday;
            private Object regionalId;
            private Object regionalDesc;
            private Object addressDesc;
            private Object createBy;
            private Object createTime;
            private Object updateBy;
            private long updateTime;

            public Integer getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getPoint() {
                return CheckUtils.isEmptyNullNumber(point);
            }

            public void setPoint(int poInteger) {
                this.point = poInteger;
            }

            public int getPayAmt() {
                return payAmt;
            }

            public void setPayAmt(int payAmt) {
                this.payAmt = payAmt;
            }

            public int getPayCnt() {
                return payCnt;
            }

            public void setPayCnt(int payCnt) {
                this.payCnt = payCnt;
            }

            public int getBalance() {
                return balance;
            }

            public void setBalance(int balance) {
                this.balance = balance;
            }

            public Object getOrderLastTime() {
                return orderLastTime;
            }

            public void setOrderLastTime(Object orderLastTime) {
                this.orderLastTime = orderLastTime;
            }

            public Object getMail() {
                return mail;
            }

            public void setMail(Object mail) {
                this.mail = mail;
            }

            public String getBirthday() {
                return birthday;
            }

            public void setBirthday(String birthday) {
                this.birthday = birthday;
            }

            public Object getRegionalId() {
                return regionalId;
            }

            public void setRegionalId(Object regionalId) {
                this.regionalId = regionalId;
            }

            public Object getRegionalDesc() {
                return regionalDesc;
            }

            public void setRegionalDesc(Object regionalDesc) {
                this.regionalDesc = regionalDesc;
            }

            public Object getAddressDesc() {
                return addressDesc;
            }

            public void setAddressDesc(Object addressDesc) {
                this.addressDesc = addressDesc;
            }

            public Object getCreateBy() {
                return createBy;
            }

            public void setCreateBy(Object createBy) {
                this.createBy = createBy;
            }

            public Object getCreateTime() {
                return createTime;
            }

            public void setCreateTime(Object createTime) {
                this.createTime = createTime;
            }

            public Object getUpdateBy() {
                return updateBy;
            }

            public void setUpdateBy(Object updateBy) {
                this.updateBy = updateBy;
            }

            public long getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(long updateTime) {
                this.updateTime = updateTime;
            }
        }

        public static class UnionInfoBean implements Parcelable {

            /**
             * id : 19
             * mercId : 1
             * cityId : 1
             * name : 不允许享受1
             * cardId : null
             * saleType : 1
             * withActive : 1
             * receiveCoupon : 0
             * remark :
             * status : 1
             * createBy : 1
             * createTime : 1526884927000
             * updateBy : 1
             * updateTime : 1527318773000
             */
            private int id;
            private int mercId;
            private int cityId;
            private String name;
            private String cardId;
            private int saleType;
            private int withActive;
            private int receiveCoupon;
            private String remark;


            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getMercId() {
                return mercId;
            }

            public void setMercId(int mercId) {
                this.mercId = mercId;
            }

            public int getCityId() {
                return cityId;
            }

            public void setCityId(int cityId) {
                this.cityId = cityId;
            }

            public String getName() {
                return CheckUtils.isEmptyString(name);
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getCardId() {
                return cardId;
            }

            public void setCardId(String cardId) {
                this.cardId = cardId;
            }

            public int getSaleType() {
                return saleType;
            }

            public void setSaleType(int saleType) {
                this.saleType = saleType;
            }

            public int getWithActive() {
                return withActive;
            }

            public void setWithActive(int withActive) {
                this.withActive = withActive;
            }

            public int getReceiveCoupon() {
                return receiveCoupon;
            }

            public void setReceiveCoupon(int receiveCoupon) {
                this.receiveCoupon = receiveCoupon;
            }

            public String getRemark() {
                return remark;
            }

            public void setRemark(String remark) {
                this.remark = remark;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeInt(this.id);
                dest.writeInt(this.mercId);
                dest.writeInt(this.cityId);
                dest.writeString(this.name);
                dest.writeString(this.cardId);
                dest.writeInt(this.saleType);
                dest.writeInt(this.withActive);
                dest.writeInt(this.receiveCoupon);
                dest.writeString(this.remark);
            }

            public UnionInfoBean() {
            }

            protected UnionInfoBean(Parcel in) {
                this.id = in.readInt();
                this.mercId = in.readInt();
                this.cityId = in.readInt();
                this.name = in.readString();
                this.cardId = in.readString();
                this.saleType = in.readInt();
                this.withActive = in.readInt();
                this.receiveCoupon = in.readInt();
                this.remark = in.readString();
            }

            public static final Creator<UnionInfoBean> CREATOR = new Creator<UnionInfoBean>() {
                @Override
                public UnionInfoBean createFromParcel(Parcel source) {
                    return new UnionInfoBean(source);
                }

                @Override
                public UnionInfoBean[] newArray(int size) {
                    return new UnionInfoBean[size];
                }
            };
        }


        public static class CardBean implements Parcelable {
            /**
             * no : NO9920121
             * relId : 1
             * info : {"id":1,"mercId":1,"cityId":-1,"name":"普通会员卡","coverType":1,"imgPath":"#60be4e","giftPoInteger":10,"poIntegerRatio":1,"rights":"1101","discount":50,"level":1,"remark":"普通会员卡使用须知","payAmt":null,"payCnt":null,"poInteger":null,"userCnt":null,"status":0,"createBy":null,"createTime":null,"updateBy":8,"updateTime":1497690662000}
             */


            private String rfidNo;
            private String no;
            private int isBinding;
            private int relId;
            private InfoBean info;


            protected CardBean(Parcel in) {
                rfidNo = in.readString();
                no = in.readString();
                isBinding = in.readInt();
                relId = in.readInt();
                info = in.readParcelable(InfoBean.class.getClassLoader());
            }

            public static final Creator<CardBean> CREATOR = new Creator<CardBean>() {
                @Override
                public CardBean createFromParcel(Parcel in) {
                    return new CardBean(in);
                }

                @Override
                public CardBean[] newArray(int size) {
                    return new CardBean[size];
                }
            };

            public void setRfidNo(String rfidNo) {
                this.rfidNo = rfidNo;
            }

            public boolean getIsBinding() {
                boolean isBindings = false;
                if (isBinding == 1) {/*绑定*/
                    isBindings = true;
                }
                return isBindings;
            }

            public int getbing() {
                return isBinding;
            }

            public void setIsBinding(boolean isBindings) {
                if (isBindings) {
                    this.isBinding = 1;
                } else {
                    this.isBinding = 0;
                }

            }

            public String getNo() {
                return rfidNo;
            }

            public void setNo(String no) {
                this.rfidNo = no;
            }

            public int getRelId() {
                return relId;
            }

            public void setRelId(int relId) {
                this.relId = relId;
            }

            public InfoBean getInfo() {
                return info;
            }

            public void setInfo(InfoBean info) {
                this.info = info;
            }


            public static class InfoBean implements Parcelable {

                /**
                 * id : 1
                 * mercId : 1
                 * cityId : -1
                 * name : 普通会员卡
                 * coverType : 1
                 * imgPath : #60be4e
                 * giftPoInteger : 10
                 * poIntegerRatio : 1
                 * rights : 1101
                 * discount : 50
                 * level : 1
                 * remark : 普通会员卡使用须知
                 * payAmt : null
                 * payCnt : null
                 * poInteger : null
                 * userCnt : null
                 * status : 0
                 * createBy : null
                 * createTime : null
                 * updateBy : 8
                 * updateTime : 1497690662000
                 */

                private int id;
                private int mercId;
                private int cityId;
                private String name;
                private int coverType;
                private String imgPath;
                private int giftPoInteger;
                private int poIntegerRatio;
                private String rights;
                private int discount;
                private int discountType;
                private int level;
                private String remark;
                private Object payAmt;
                private Object payCnt;
                private Object poInteger;
                private Object userCnt;
                private int status;
                private int updateBy;
                private long updateTime;
                private long createTime;

                public Integer getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public int getMercId() {
                    return mercId;
                }

                public void setMercId(int mercId) {
                    this.mercId = mercId;
                }

                public int getCityId() {
                    return cityId;
                }

                public void setCityId(int cityId) {
                    this.cityId = cityId;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public int getCoverType() {
                    return coverType;
                }

                public void setCoverType(int coverType) {
                    this.coverType = coverType;
                }

                public String getImgPath() {
                    return imgPath;
                }

                public void setImgPath(String imgPath) {
                    this.imgPath = imgPath;
                }

                public int getGiftPoInteger() {
                    return giftPoInteger;
                }

                public void setGiftPoInteger(Integer giftPoInteger) {
                    this.giftPoInteger = giftPoInteger;
                }

                public Integer getPoIntegerRatio() {
                    return poIntegerRatio;
                }

                public void setPoIntegerRatio(Integer poIntegerRatio) {
                    this.poIntegerRatio = poIntegerRatio;
                }

                public String getRights() {
                    return rights;
                }

                public void setRights(String rights) {
                    this.rights = rights;
                }

                public String getDiscount() {
                    return CheckUtils.isDiscount(discount, discountType);
                }

                public void setDiscount(int discount) {
                    this.discount = discount;
                }

                public int getLevel() {
                    return level;
                }

                public void setLevel(int level) {
                    this.level = level;
                }

                public String getRemark() {
                    return remark;
                }

                public void setRemark(String remark) {
                    this.remark = remark;
                }

                public Object getPayAmt() {
                    return payAmt;
                }

                public void setPayAmt(Object payAmt) {
                    this.payAmt = payAmt;
                }

                public Object getPayCnt() {
                    return payCnt;
                }

                public void setPayCnt(Object payCnt) {
                    this.payCnt = payCnt;
                }




                public int getStatus() {
                    return status;
                }

                public void setStatus(int status) {
                    this.status = status;
                }



                public long getCreateTime() {
                    return createTime;
                }

                public void setCreateTime(long createTime) {
                    this.createTime = createTime;
                }


                @Override
                public int describeContents() {
                    return 0;
                }

                @Override
                public void writeToParcel(Parcel dest, int flags) {
                    dest.writeInt(this.id);
                    dest.writeInt(this.mercId);
                    dest.writeInt(this.cityId);
                    dest.writeString(this.name);
                    dest.writeInt(this.coverType);
                    dest.writeString(this.imgPath);
                    dest.writeInt(this.giftPoInteger);
                    dest.writeInt(this.poIntegerRatio);
                    dest.writeString(this.rights);
                    dest.writeInt(this.discount);
                    dest.writeInt(this.discountType);
                    dest.writeInt(this.level);
                    dest.writeString(this.remark);
                    dest.writeInt(this.status);
                    dest.writeInt(this.updateBy);
                    dest.writeLong(this.updateTime);
                }

                public InfoBean() {
                }

                protected InfoBean(Parcel in) {
                    this.id = in.readInt();
                    this.mercId = in.readInt();
                    this.cityId = in.readInt();
                    this.name = in.readString();
                    this.coverType = in.readInt();
                    this.imgPath = in.readString();
                    this.giftPoInteger = in.readInt();
                    this.poIntegerRatio = in.readInt();
                    this.rights = in.readString();
                    this.discount = in.readInt();
                    this.discountType = in.readInt();
                    this.level = in.readInt();
                    this.remark = in.readString();
                    this.status = in.readInt();
                    this.updateBy = in.readInt();
                    this.updateTime = in.readLong();
                }

                public static final Creator<InfoBean> CREATOR = new Creator<InfoBean>() {
                    @Override
                    public InfoBean createFromParcel(Parcel source) {
                        return new InfoBean(source);
                    }

                    @Override
                    public InfoBean[] newArray(int size) {
                        return new InfoBean[size];
                    }
                };
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.rfidNo);
                dest.writeString(this.no);
                dest.writeInt(this.isBinding);
                dest.writeInt(this.relId);
                dest.writeParcelable(this.info, flags);
            }


        }

        public static class InfoBeanX implements Parcelable {
            /**
             * id : 1
             * mercId : 1
             * name : 孙岩风
             * sex : 1
             * phone : 15103173399
             * wxId : -1
             * wxNickname : null
             * headimgPath : http://wx.qlogo.cn/mmopen/VLCDoCTqQUC0NkDQGgO98WicPaB6ic0BwMXs5urt5piaXssTExnl1UI1kNUd6Wv5dU7xYP78SM1x9E2tllJibciaEV7TStLx6Dwtv/0
             * status : 1
             * verifyPhone : 1
             * verifyIos : 1
             * verifyAndriod : 1
             * origin : 1
             * subscribe : 2
             * createBy : 1
             * createTime : 1495766166000
             * updateBy : null
             * updateTime : 1498216398000
             */

            private String id;
            private int mercId;
            private String name;
            private int sex;
            private String phone;
            private int wxId;
            private String wxNickname;
            private String headimgPath;
            private int status;
            private int verifyPhone;
            private int verifyIos;
            private int verifyAndriod;
            private int origin;
            private int subscribe;
            private int createBy;
            private long createTime;
            private Object updateBy;
            private long updateTime;

            protected InfoBeanX(Parcel in) {
                id = in.readString();
                mercId = in.readInt();
                name = in.readString();
                sex = in.readInt();
                phone = in.readString();
                wxId = in.readInt();
                wxNickname = in.readString();
                headimgPath = in.readString();
                status = in.readInt();
                verifyPhone = in.readInt();
                verifyIos = in.readInt();
                verifyAndriod = in.readInt();
                origin = in.readInt();
                subscribe = in.readInt();
                createBy = in.readInt();
                createTime = in.readLong();
                updateTime = in.readLong();
            }

            public static final Creator<InfoBeanX> CREATOR = new Creator<InfoBeanX>() {
                @Override
                public InfoBeanX createFromParcel(Parcel in) {
                    return new InfoBeanX(in);
                }

                @Override
                public InfoBeanX[] newArray(int size) {
                    return new InfoBeanX[size];
                }
            };

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public int getMercId() {
                return mercId;
            }

            public void setMercId(int mercId) {
                this.mercId = mercId;
            }

            public String getName() {
                return CheckUtils.isEmptyString(name);
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getSex() {
                if (CheckUtils.isNull(sex)) {
                    sex = 0;
                }
                String msex = "";
                switch (sex) {
                    case 1:
                        msex = "男";
                        break;
                    case 2:
                        msex = "女";
                        break;
                    case 0:
                        msex = "未知";
                        break;


                }
                return msex;
            }


            public void setSex(int sex) {
                this.sex = sex;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public int getWxId() {

                return wxId;
            }

            public void setWxId(int wxId) {
                this.wxId = wxId;
            }

            public String getWxNickname() {
                return wxNickname;
            }

            public void setWxNickname(String wxNickname) {
                this.wxNickname = wxNickname;
            }

            public String getHeadimgPath() {
                return headimgPath;
            }

            public void setHeadimgPath(String headimgPath) {
                this.headimgPath = headimgPath;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public int getVerifyPhone() {
                return verifyPhone;
            }

            public void setVerifyPhone(int verifyPhone) {
                this.verifyPhone = verifyPhone;
            }

            public int getVerifyIos() {
                return verifyIos;
            }

            public void setVerifyIos(int verifyIos) {
                this.verifyIos = verifyIos;
            }

            public int getVerifyAndriod() {
                return verifyAndriod;
            }

            public void setVerifyAndriod(int verifyAndriod) {
                this.verifyAndriod = verifyAndriod;
            }

            public int getOrigin() {
                return origin;
            }

            public void setOrigin(int origin) {
                this.origin = origin;
            }

            public boolean getSubscribe() {
                boolean ishow = false;
                if (subscribe == -1) {
                    ishow = true;
                }
                return ishow;

            }

            public void setSubscribe(int subscribe) {
                this.subscribe = subscribe;
            }

            public int getCreateBy() {
                return createBy;
            }

            public void setCreateBy(int createBy) {
                this.createBy = createBy;
            }

            public long getCreateTime() {
                return createTime;
            }

            public void setCreateTime(long createTime) {
                this.createTime = createTime;
            }

            public Object getUpdateBy() {
                return updateBy;
            }

            public void setUpdateBy(Object updateBy) {
                this.updateBy = updateBy;
            }

            public long getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(long updateTime) {
                this.updateTime = updateTime;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(id);
                dest.writeInt(mercId);
                dest.writeString(name);
                dest.writeInt(sex);
                dest.writeString(phone);
                dest.writeInt(wxId);
                dest.writeString(wxNickname);
                dest.writeString(headimgPath);
                dest.writeInt(status);
                dest.writeInt(verifyPhone);
                dest.writeInt(verifyIos);
                dest.writeInt(verifyAndriod);
                dest.writeInt(origin);
                dest.writeInt(subscribe);
                dest.writeInt(createBy);
                dest.writeLong(createTime);
                dest.writeLong(updateTime);
            }
        }

        public static class GroupBean implements Serializable {
            /**
             * id : -1
             * mercId : null
             * cityId : null
             * name : 默认分组
             * cnt : null
             * createBy : null
             * createTime : null
             * updateBy : null
             * updateTime : null
             */

            private int id;
            private Object mercId;
            private Object cityId;
            private String name;
            private Object cnt;
            private Object createBy;
            private Object createTime;
            private Object updateBy;
            private Object updateTime;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public Object getMercId() {
                return mercId;
            }

            public void setMercId(Object mercId) {
                this.mercId = mercId;
            }

            public Object getCityId() {
                return cityId;
            }

            public void setCityId(Object cityId) {
                this.cityId = cityId;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public Object getCnt() {
                return cnt;
            }

            public void setCnt(Object cnt) {
                this.cnt = cnt;
            }

            public Object getCreateBy() {
                return createBy;
            }

            public void setCreateBy(Object createBy) {
                this.createBy = createBy;
            }

            public Object getCreateTime() {
                return createTime;
            }

            public void setCreateTime(Object createTime) {
                this.createTime = createTime;
            }

            public Object getUpdateBy() {
                return updateBy;
            }

            public void setUpdateBy(Object updateBy) {
                this.updateBy = updateBy;
            }

            public Object getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(Object updateTime) {
                this.updateTime = updateTime;
            }
        }

        public static class TagListBean implements Serializable {
            /**
             * relId : 9
             * userTag : {"id":5,"mercId":1,"cityId":1,"name":"新客户赠送券","cnt":1,"createBy":1,"createTime":1495771977000,"updateBy":9,"updateTime":1496715983000}
             */

            private int relId;
            private UserTagBean userTag;

            public int getRelId() {
                return relId;
            }

            public void setRelId(int relId) {
                this.relId = relId;
            }

            public UserTagBean getUserTag() {
                return userTag;
            }

            public void setUserTag(UserTagBean userTag) {
                this.userTag = userTag;
            }

            public static class UserTagBean implements Serializable {
                /**
                 * id : 5
                 * mercId : 1
                 * cityId : 1
                 * name : 新客户赠送券
                 * cnt : 1
                 * createBy : 1
                 * createTime : 1495771977000
                 * updateBy : 9
                 * updateTime : 1496715983000
                 */

                private int id;
                private int mercId;
                private int cityId;
                private String name;
                private int cnt;
                private int createBy;
                private long createTime;
                private int updateBy;
                private long updateTime;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public int getMercId() {
                    return mercId;
                }

                public void setMercId(int mercId) {
                    this.mercId = mercId;
                }

                public int getCityId() {
                    return cityId;
                }

                public void setCityId(int cityId) {
                    this.cityId = cityId;
                }

                public String getName() {
                    try {
                        return name;
                    } catch (Exception e) {
                        return "";
                    }


                }

                public void setName(String name) {
                    this.name = name;
                }

                public int getCnt() {
                    return cnt;
                }

                public void setCnt(int cnt) {
                    this.cnt = cnt;
                }

                public int getCreateBy() {
                    return createBy;
                }

                public void setCreateBy(int createBy) {
                    this.createBy = createBy;
                }

                public long getCreateTime() {
                    return createTime;
                }

                public void setCreateTime(long createTime) {
                    this.createTime = createTime;
                }

                public int getUpdateBy() {
                    return updateBy;
                }

                public void setUpdateBy(int updateBy) {
                    this.updateBy = updateBy;
                }

                public long getUpdateTime() {
                    return updateTime;
                }

                public void setUpdateTime(long updateTime) {
                    this.updateTime = updateTime;
                }
            }
        }

        public static class StoreListBean implements Serializable {
            /**
             * id : 19
             * mercId : 1
             * cityId : 1
             * name : 再添加门店
             * code : 30306468
             * regionalId : 310404
             * regionalDesc : 上海徐汇徐汇区
             * addrDesc : 的奋斗
             * longitude :
             * latitude :
             * tel : 18777554447
             * status : 1
             * workId : 44
             * createBy : 8
             * createTime : 1497257930000
             * updateBy : 8
             * updateTime : 1497836189000
             */

            private int id;
            private int mercId;
            private int cityId;
            private String name;
            private String code;
            private int regionalId;
            private String regionalDesc;
            private String addrDesc;
            private String longitude;
            private String latitude;
            private String tel;
            private int status;
            private int workId;
            private int createBy;
            private long createTime;
            private int updateBy;
            private long updateTime;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getMercId() {
                return mercId;
            }

            public void setMercId(int mercId) {
                this.mercId = mercId;
            }

            public int getCityId() {
                return cityId;
            }

            public void setCityId(int cityId) {
                this.cityId = cityId;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }

            public int getRegionalId() {
                return regionalId;
            }

            public void setRegionalId(int regionalId) {
                this.regionalId = regionalId;
            }

            public String getRegionalDesc() {
                return regionalDesc;
            }

            public void setRegionalDesc(String regionalDesc) {
                this.regionalDesc = regionalDesc;
            }

            public String getAddrDesc() {
                return addrDesc;
            }

            public void setAddrDesc(String addrDesc) {
                this.addrDesc = addrDesc;
            }

            public String getLongitude() {
                return longitude;
            }

            public void setLongitude(String longitude) {
                this.longitude = longitude;
            }

            public String getLatitude() {
                return latitude;
            }

            public void setLatitude(String latitude) {
                this.latitude = latitude;
            }

            public String getTel() {
                return tel;
            }

            public void setTel(String tel) {
                this.tel = tel;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public int getWorkId() {
                return workId;
            }

            public void setWorkId(int workId) {
                this.workId = workId;
            }

            public int getCreateBy() {
                return createBy;
            }

            public void setCreateBy(int createBy) {
                this.createBy = createBy;
            }

            public long getCreateTime() {
                return createTime;
            }

            public void setCreateTime(long createTime) {
                this.createTime = createTime;
            }

            public int getUpdateBy() {
                return updateBy;
            }

            public void setUpdateBy(int updateBy) {
                this.updateBy = updateBy;
            }

            public long getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(long updateTime) {
                this.updateTime = updateTime;
            }
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeSerializable(this.ext);
            dest.writeString(this.couponCnt);
            dest.writeParcelable(this.card, flags);
            dest.writeParcelable(this.info, flags);
            dest.writeSerializable(this.group);
            dest.writeParcelable(this.unionInfo, flags);
            dest.writeList(this.tagList);
            dest.writeList(this.storeList);
        }

        public UserBean() {
        }

        protected UserBean(Parcel in) {
            this.ext = (ExtBean) in.readSerializable();
            this.couponCnt = in.readString();
            this.card = in.readParcelable(CardBean.class.getClassLoader());
            this.info = in.readParcelable(InfoBeanX.class.getClassLoader());
            this.group = (GroupBean) in.readSerializable();
            this.unionInfo = in.readParcelable(UnionInfoBean.class.getClassLoader());
            this.tagList = new ArrayList<TagListBean>();
            in.readList(this.tagList, TagListBean.class.getClassLoader());
            this.storeList = new ArrayList<StoreListBean>();
            in.readList(this.storeList, StoreListBean.class.getClassLoader());
        }

        public static final Creator<UserBean> CREATOR = new Creator<UserBean>() {
            @Override
            public UserBean createFromParcel(Parcel source) {
                return new UserBean(source);
            }

            @Override
            public UserBean[] newArray(int size) {
                return new UserBean[size];
            }
        };
    }

}
